package org.houor.utility;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtility {
	
	private static DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	public static Date parseDate(String date) throws ParseException {
		return dateformat.parse(date);
	}
	
	public static String generateDateStr(Date date) {
		return dateformat.format(date);
	}

}
